package com.ztk.threadbasic.synchronizeds;

import lombok.Data;
import org.openjdk.jol.info.ClassLayout;

@Data
public class Synchronized02 {
    private String name;

    private int age;

    private byte price;

    public static void main(String[] args) {
        Synchronized02 synchronized02 = new Synchronized02();
        synchronized02.setName("gooddd");
        System.out.println(ClassLayout.parseInstance(synchronized02).toPrintable());

        String test = "string";
        System.out.println(ClassLayout.parseInstance(test).toPrintable());
    }
}
